<div class="fl uc_menu">
    <div class="menu_head">
        <a class="m_himg" href="/m/photo" title="点击修改头像">
            <img alt="头像" src="<?php echo _get_userlogo_url($this->thatUser['userlogo'])?>"/>
            <div class="head_bj"></div>
        </a>
        <h3 class="m_name"><a title="进入个人主页" href="/i/index/<?=$this->thatUser['id']?>" target="_blank"><?=$this->thatUser['usertype']==3?$this->com_short:$this->thatUser['nickname']?></a></h3>
        <p class="m_prompt">
            <?php $agentUser = $this->cache->get('agentUser');
                if(!empty($agentUser)):?>
                <a href="/m/model/exitagt?modelid=<?=_get_key_val($agentUser['id'])?>">退出代理</a>
            <?php endif?>
            <?=_get_timehello();?>         
        </p>
        <div class="m_prompt_close help_notice"><i onclick="helpClose(this)" class="close"></i></div>
    </div>
    <div class="menu_box">
        <ul>
        <?php if(in_array($this->thatUser['usertype'],array(1,4,5,6)) ):?>
        	<!--<li><a href="/m/">会员中心<i></i></a></li>-->
            <li<?php if(strncmp(strtolower(uri_string()),'m/fans', strlen('m/fans')) === 0) echo ' class="current"';?>><a href="/m/fans">互动总览<i></i></a></li>
            <li<?php if(strncmp(strtolower(uri_string()),'m/schedule', strlen('m/schedule')) === 0) echo ' class="current"';?>><a href="/m/schedule">档期管理<i></i></a></li>
            <li<?php if(strncmp(strtolower(uri_string()), 'm/info', strlen('m/info')) === 0 || (strncmp(strtolower(uri_string()), 'm/photo', strlen('m/photo')) === 0 && $this->input->get('flag'))) echo ' class="current"';?>><a href="/m/info">个人资料<i></i></a></li>
            <li<?php if(strncmp(strtolower(uri_string()), 'm/works', 7) === 0) echo ' class="current"';?>><a href="/m/works">作品管理<i></i></a></li>
            <li<?php if(strncmp(strtolower(uri_string()) ,'m/product', strlen('m/product')) === 0) echo ' class="current"';?>><a href="/m/product">工作价格<i></i></a></li>
            <li<?php if(strncmp(strtolower(uri_string()), 'm/cert', strlen('m/cert')) === 0) echo ' class="current"';?>><a href="/m/cert">我的认证<i></i></a></li>
            <?php if ($this->thatUser['usertype'] == 6):?><li<?php if(strncmp(strtolower(uri_string()), 'm/activity',strlen('m/activity')) === 0) echo ' class="current"';?>><a href="/m/activity">通告管理<i></i></a></li><?php endif;?>
            <li<?php if(strncmp(strtolower(uri_string()), 'm/order', strlen('m/order')) === 0) echo ' class="current"';?>><a href="/m/order">交易管理<?php if($this->loginUserNum && $this->loginUserNum['be_ordernum_new']):?><span class="o_mete"><?php echo $this->loginUserNum['be_ordernum_new'];?></span><?php endif?><i></i></a></li>
            <li<?php if(strncmp(strtolower(uri_string()), 'm/fund', strlen('m/fund')) === 0) echo ' class="current"';?>><a href="/m/fund">资金账户<i></i></a></li>
            <li<?php if(strncmp(strtolower(uri_string()), 'm/comment', strlen('m/comment')) === 0) echo ' class="current"';?>><a href="/m/comment">评论管理<i></i></a></li>
            <li<?php if(strncmp(strtolower(uri_string()), 'm/client', strlen('m/client')) === 0) echo ' class="current"';?>><a href="/m/client">客户管理<i></i></a></li>
            <li<?php if(strncmp(strtolower(uri_string()), 'm/message', strlen('m/message')) === 0) echo ' class="current"';?>><a href="/m/message">系统消息<i></i></a></li>

        <?php else:
            $certStr = ($this->thatUser['usertype'] == 3) ? '企业认证' : '机构认证';
            $infoStr = ($this->thatUser['usertype'] == 3) ? '企业资料' : '机构资料'
            ?>
        	<!--<li><a href="/m/">会员中心<i></i></a></li>-->
            <li<?php if(strncmp(strtolower(uri_string()), 'm/fans', strlen('m/fans'))  === 0) echo ' class="current"';?>><a href="/m/fans">互动总览<i></i></a></li>
            <li<?php if( (strtolower(uri_string())=='m/info' && !$this->input->get('agid')) ||  (strncmp(strtolower(uri_string()), 'm/photo', strlen('m/photo')) === 0 && $this->input->get('flag') && !$this->input->get('agid'))) echo ' class="current"';?>><a href="/m/info"><?php echo $infoStr?><i></i></a></li>
            <li<?php if( strtolower(uri_string())=='m/cert' ) echo ' class="current"';?>><a href="/m/cert"><?php echo $certStr?><i></i></a></li>
            <?php if($this->thatUser['usertype'] == 2) :?>   
            <li<?php if(strncmp(strtolower(uri_string()), 'm/works', 7) === 0 && (!$this->input->get('agid') || $this->thatUser['id']==_get_key_val($this->input->get('agid'), true))) echo ' class="current"';?>><a href="/m/works">作品管理<i></i></a></li>
            <li<?php if( strncmp(strtolower(uri_string()), 'm/schedule/index', 16) === 0 || ((strtolower(uri_string())=='m/model' || $this->input->get('agid')) && $this->thatUser['id']!=_get_key_val($this->input->get('agid'), true)) ) echo ' class="current"';?>><a href="/m/model">艺人管理<i></i></a></li>
            <?php endif?>
            <li<?php if(strncmp(strtolower(uri_string()), 'm/activity',strlen('m/activity')) === 0) echo ' class="current"';?>><a href="/m/activity">通告管理<i></i></a></li>          
            <li<?php if(strncmp(strtolower(uri_string()), 'm/order', strlen('m/order')) === 0) echo ' class="current"';?>><a href="/m/order">交易管理<?php if($this->loginUserNum && $this->loginUserNum['be_ordernum_new']):?><span class="o_mete"><?php echo $this->loginUserNum['be_ordernum_new'];?></span><?php endif?><i></i></a></li>
            <li<?php if(strncmp(strtolower(uri_string()), 'm/comment', strlen('m/comment')) === 0) echo ' class="current"';?>><a href="/m/comment">评论管理<i></i></a></li>
             <?php if($this->thatUser['usertype'] == 2) :?> 
            <li<?php if(strncmp(strtolower(uri_string()), 'm/client', strlen('m/client')) === 0) echo ' class="current"';?>><a href="/m/client">客户管理<i></i></a></li>
            <?php endif?>
            <li<?php if(strncmp(strtolower(uri_string()), 'm/message',strlen('m/message')) === 0) echo ' class="current"';?>><a href="/m/message">系统消息<i></i></a></li>  
        <?php endif?>
        	<li<?php if(strncmp(strtolower(uri_string()), 'm/recommend',strlen('m/recommend')) === 0) echo ' class="current"';?>><a href="/m/recommend">推荐用户<i></i></a></li>
        </ul>
    </div>
    <div class="m_level">
        <h3 class="clearfix ml_bti"><font class="fl">账户安全级别：</font><em class="fr">
            <?php $str_safety = '低';
             switch ($this->loginUser['safety']) {
                case 1:
                    $str_safety = '低';
                    break;
                case 2:
                    $str_safety = '中';
                    break;
                case 3:
                    $str_safety = '高';
                    break;
                
                default:
                    # code...
                    break;
            }?><?=$str_safety?></em></h3>
        <div class="level"><span class="rating_<?=$this->loginUser['safety']?>"></span></div>
        <a class="lmu_mm" href="/m/safety">修改密码</a>
    </div>
</div>